<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>已发送文件</title>

  <!--data table-->
  <link rel="stylesheet" href="js/data-tables/DT_bootstrap.css" />

    <div th:include="commons :: comhead"></div>
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div th:replace="commons :: #left"></div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                文件
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">主页</a>
                </li>
                <li>
                    <a href="#">文件管理</a>
                </li>
                <li class="active"> 已发送文件 </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
             <div class="row">
                <div class="col-sm-12">
                <section class="panel">
                <header class="panel-heading">
                    <div class="btn-group btn-group-justified" style="" th:styleappend="${session.has2 == true} ? '':'display: none'">
                        <a th:href="@{/beenSend.html}" class="btn btn-success">查看我发送的</a>
                        <a th:href="@{/boss_receive.html}" class="btn btn-danger">查看所有</a>
                    </div>
                </header>
                <div class="panel-body">
                <div class="adv-table editable-table ">
                <div class="space15"></div>

                <table class="table table-bordered table-invoice" id="editable-sample">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th>文件名</th>
                        <th class="text-center">发送人</th>
                        <th class="text-center">接收人</th>
                        <th class="text-center">发送时间</th>
                        <th class="text-center">是否接收</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="filec,counts:${files}">
                        <td th:text="${counts.count}"></td>
                        <td><h4 th:text="${filec.FName}">XXX</h4></td>
                        <td><h4 th:text="${filec.sendName}">XXX</h4></td>
                        <td><h4 th:text="${filec.receiveName}">XXX</h4></td>
                        <td><h4 th:text="${#dates.format(filec.createTime, 'yyyy/MM/dd HH:mm')}">XXX</h4></td>
                        <td>
                            <a th:href="@{/downLoadFile(id=${filec.FId})}"><button th:class="${filec.isAccept}==0?'btn btn-danger':'btn btn-success'" th:text="${filec.isAccept}==0?'未接收':'已接收'" class="btn btn-danger" type="button">接收</button></a>
                        </td>
                    </tr>
                    </tbody>

                </table>
                </div>
                </div>
                </section>
                </div>
                </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<div th:replace="commons :: js"></div>

<!--data table-->
<script type="text/javascript" src="js/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>

<!--common scripts for all pages-->

<!--script for editable table-->
<script src="js/editable-table.js"></script>

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>

</body>
</html>
